(function($) {
    $.fn.notification = function(title,message,timeout) {
	  this.each(function() {
	     $(this).find('.el-notification__closeBtn').on('click',function(){
	    	 $(this).parent().parent().css({top:'-100px'});
	     });
	     $(this).find('.el-notification__group span').text(title);
	     $(this).find('.el-notification__group p').text(message);
	     $(this).css({top:'40px'});
	     var that =this;
	     if(timeout){
			  setTimeout(function(){
				  $(that).css({top:'-100px'});
			  },timeout)
		 }
	  });
	  
	  return this;
    };
    
})(jQuery);